import Vue from 'vue'
import Router from 'vue-router'
import index from '@/index/index'
import goodList from '@/index/pages/goodList'
import goodDetail from '@/index/pages/goodDetail'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'index',
        component: index
    }, {
        path: '/goodList',
        name: 'goodList',
        component: goodList
    }, {
        path: '/goodDetail',
        name: 'goodDetail',
        component: goodDetail
    }]
})
